package com.ouc.edu.ssm.service.impl;

import com.ouc.edu.ssm.bean.Central_station;
import com.ouc.edu.ssm.mapper.QueryChiefListMapper;
import com.ouc.edu.ssm.service.QueryCentralStationByChiefIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class QueryCentralStationByChiefIdServiceImpl implements QueryCentralStationByChiefIdService {
    @Autowired
    private QueryChiefListMapper querychieflistmapper;

    public void setQuerychieflistmapper(QueryChiefListMapper querychieflistmapper) {
        this.querychieflistmapper = querychieflistmapper;
    }

    public List<Central_station> queryCentralStationByChiefId(int cheifid) {
        List centralStationList = querychieflistmapper.queryCentralStationByChiefId(cheifid);
        return centralStationList;
    }
}
